package com.castle.fortress.admin.goods.mapper;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castle.fortress.admin.goods.entity.DeliveryMethodEntity;
import java.util.Map;
import java.util.List;
/**
 * 配送方式Mapper 接口
 *
 * @author whc
 * @since 2022-12-09
 */
public interface DeliveryMethodMapper extends BaseMapper<DeliveryMethodEntity> {

    /**
    * 扩展信息列表
    * @param pageMap
    * @param deliveryMethodEntity
    * @return
    */
    List<DeliveryMethodEntity> extendsList(@Param("map")Map<String, Long> pageMap, @Param("deliveryMethodEntity") DeliveryMethodEntity deliveryMethodEntity);

    /**
    * 扩展信息记录总数
    * @param deliveryMethodEntity
    * @return
    */
    Long extendsCount(@Param("deliveryMethodEntity") DeliveryMethodEntity deliveryMethodEntity);

    /**
    * 配送方式扩展详情
    * @param id 配送方式id
    * @return
    */
    DeliveryMethodEntity getByIdExtends(@Param("id")Long id);



}
